import requests

# 创建一个session实例
session = requests.session()
# 获取验证码
session.get(
    url='https://test-api-base.mmtwo.cn/captchas/8e20ddd0-ac16-11ed-9172-39cda48efa3c/LOGIN?rmd=1676357225721')
# 使用session实例调用get方法，发送登录请求，不携带cookie


resp = session.get(
    url="https://test-api-seller.mmtwo.cn/seller/login",
    params={"username":"food",
        "password":"96e79218965eb72c92a549dd5a330112",
        "scene":"LOGIN",
        "captcha":1111,
        "uuid":"8e20ddd0-ac16-11ed-9172-39cda48efa3c"})
print(resp.json())
token = resp.json()["access_token"]
# print("token：", token)

resp_o = session.get(url="https://test-api-seller.mmtwo.cn/seller/members/comments?page_no=1&page_size=10"
                      , headers={'Authorization': token}
                      )
print(resp_o.json())


